home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
SGI Enlighten DSM 1.1
/
SGI EnlightenDSM 1.1.iso
/
sco5x
/
common
/
scripts
/
user.rc
Wrap
Text File
|
1998-06-30
|
757b
|
37 lines
#
# Copyright (c) 1990-1998 Enlighten Software Solutions, Inc.
# -- All Rights Reserved --
#
# Arg 1: gecos (realname, telephone, office)
# Arg 2: home directory
# Arg 3: uid
# Arg 4: gid
# Arg 5: shell
# Arg 6: login name
# NOTE: if the parameter CREATEHOMEDIR == 0
# then the home directory may not exist when
# this script executes
if test -d $2 ; then
shell=`basename "$5"`
case $shell in
sh) files="sh/profile" ;;
rsh) files="rsh/profile" ;;
csh) files="csh/cshrc csh/login" ;;
ksh) files="ksh/profile ksh/kshrc" ;;
rksh) files="rksh/profile rksh/rkshrc" ;;
*) files=sh/profile ;;
esac
for i in $files
do
rc=/usr/lib/mkuser/$i
if test -f $rc ; then
/bin/cp $rc "$2"/.`basename $rc`
fi
done
fi
exit 0